home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / FROMUTS / DDEPASCAL / DDE / !PC / h / drawferror < prev    next >
Text File  |  1992-02-10  |  5KB  |  100 lines

  1. (* 
  2.  * Title:   drawferror.h
  3.  * Purpose: Definition of error codes and standard messages
  4.  *          for the Drawfile rendering functions.
  5.  *
  6.  *)
  7.  
  8. (*
  9.  *
  10.  * For each error, a code and the standard message are listed.
  11.  * See drawfdiag.h for how to use the errors.
  12.  *
  13.  *)
  14.  
  15. #ifndef __drwaferror_h
  16. #define __drawferror_h
  17.  
  18. const   draw_BadObject       =   1; (* 'Bad object' *)
  19.         draw_BadObjectHandle =   2; (* 'Bad object handle' *)
  20.         draw_TooManyFonts    =   3; (* 'Too many font definitions' *)
  21.  
  22.         draw_BBoxWrong       = 101; (* 'Bounding box coordinates are in the
  23.                                      * wrong order'
  24.                                      *)
  25.         draw_BadCharacter    = 102; (* 'Bad character in string' *)
  26.         draw_ObjectTooSmall  = 103; (* 'Object size is too small' *)
  27.         draw_ObjectTooLarge  = 104; (* 'Object size is too large' *)
  28.         draw_ObjectNotMult4  = 105; (* 'Object size is not a multiple of 4' *)
  29.         draw_ObjectOverrun   = 106; (* 'Object data is larger than specified
  30.                                      * specified size'
  31.                                      *)
  32.         draw_ManyFontTables  = 107; (* 'There is more than one font table' *)
  33.         draw_LateFontTable   = 108; (* 'The font table appears after text
  34.                                      * object(s)'
  35.                                      *)
  36.         draw_BadTextStyle    = 109; (* 'Bad text style word' *)
  37.         draw_MoveMissing     = 110; (* 'Path must start with a move' *)
  38.         draw_BadPathTag      = 111; (* 'Path contains an invalid tag' *)
  39.         draw_NoPathElements  = 112; (* 'Path does not contain any line or
  40.                                      * curve elements'
  41.                                      *)
  42.         draw_PathExtraData   = 113; (* 'There is extra data present at the
  43.                                      * end of a path object'
  44.                                      *)
  45.         draw_BadSpriteSize   = 114; (* 'The sprite definition size is
  46.                                      * inconsistent with the object size'
  47.                                      *)
  48.         draw_BadTextColumnEnd = 115;(* 'Missing end marker in text columns'*)
  49.         draw_ColumnsMismatch = 116; (* 'Actual number of columns in a text
  50.                                      * area object does not match specified
  51.                                      * number of columns'
  52.                                      *)
  53.         draw_NonZeroReserved = 117; (* 'Non-zero reserved words in a text
  54.                                      * area object'
  55.                                      *)
  56.         draw_NotDrawFile     = 118; (* 'This is not a Draw file' *)
  57.         draw_VersionTooHigh  = 119; (* 'Version number too high' *)
  58.         draw_BadObjectType   = 120; (* 'Unknown object type' *)
  59.         draw_CorruptTextArea = 121; (* 'Corrupted text area (must start with
  60.                                      *  '\!')'
  61.                                      *)
  62.         draw_TextAreaVersion = 121; (* 'Text area version number is wrong or
  63.                                      *  missing' 
  64.                                      *)
  65.         draw_MissingNewline  = 122; (* 'Text area must end with a newline
  66.                                      * character'
  67.                                      *)
  68.         draw_BadAlign        = 123; (* 'Text area: bad \A code(must be L, R,
  69.                                      * C or D)'
  70.                                      *)
  71.         draw_BadTerminator   = 124; (* 'Text area: bad number or missing
  72.                                      * terminator'
  73.                                      *)
  74.         draw_ManyDCommands   = 125; (* 'Text area: more than one \D
  75.                                      * command'
  76.                                      *)
  77.         draw_BadFontNumber   = 126; (* 'Text area: bad font number' *)
  78.         draw_UnexpectedCharacter = 127; (* 'Text area: unexpected character
  79.                                          * in \F command'
  80.                                          *)
  81.         draw_BadFontWidth    = 128; (* 'Text area: bad or missing font width
  82.                                      * in \F command'
  83.                                      *)
  84.         draw_BadFontSize     = 129; (* 'Text area: bad or missing font size
  85.                                      * in \F command'
  86.                                      *)
  87.         draw_NonDigitV       = 130; (* 'Text area: non-digit in \V command'*)
  88.         draw_BadEscape       = 131; (* 'Text area: bad escape sequence' *)
  89.         draw_FewColumns      = 133; (* 'Text area must have at least one
  90.                                      * column'
  91.                                      *)
  92.         draw_TextColMemory   = 134; (* 'Out of memory when building text
  93.                                      * area' [location field is always 0
  94.                                      * for this error]
  95.                                      *)
  96.  
  97. #endif
  98.  
  99. (* end of drawferror.h *)
  100.